package EveryDayPractice;

import java.util.Scanner;

public class Practice25 {
     public static void main(String[] args){
         Scanner sc = new Scanner(System.in);
         int n = sc.nextInt();
         if(n>=10000&&n<=100000){
             {
                 System.out.print("输入正确");
                 int n1 = n%10000%1000%100%10;
                 int n2 = n%10000%1000%100/10;
                 int n3 = n%10000%1000/100;
                 int n4 = n%10000/1000;
                 int n5 = n/10000;
                 if(n1==n5&&n2==n4){
                     System.out.print("是回文");
                 }
                 else {
                     System.out.print("不是回文");
                 }
             }
         }
         else
         {
             System.out.print("输入错误");
         }
     }
}
